import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/Main'
import Home from '@/components/home/home'
import Market from '@/components/market/market'
import Register from '@/components/register'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld,
      children:[{
      	path:'/home',
      	component: Home,
      },{
      	path:'/market',
      	component: Market,
      }]
    },
    {
    	path:'/register',
    	name: 'Register',
    	component: Register
    },
    
  ]
})
